package xuanzhen.wx.pojo;


/**
 * 微信通用接口凭证
 * 
 * @author liufeng
 * @date 2013-08-08
 */
public class AccessToken {
	/**
	 * token凭证
	 */
	private String token;
	/**
	 * 凭证有效时间，单位：秒
	 */
	private int expiresIn;
	/**
	 * 用户刷新access_token
	 */
	private String refresh_token;
	/**
	 * 用户唯一标识
	 */
	private String openid;
	/**
	 * 用户授权的作用域，使用逗号（,）分隔
	 */
	private String scope;

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public int getExpiresIn() {
		return expiresIn;
	}

	public void setExpiresIn(int expiresIn) {
		this.expiresIn = expiresIn;
	}
	

	public String getRefresh_token() {
		return refresh_token;
	}

	public void setRefresh_token(String refresh_token) {
		this.refresh_token = refresh_token;
	}

	public String getOpenid() {
		return openid;
	}

	public void setOpenid(String openid) {
		this.openid = openid;
	}

	public String getScope() {
		return scope;
	}

	public void setScope(String scope) {
		this.scope = scope;
	}

	public AccessToken() {
		super();
	}

	public AccessToken(java.lang.String token, int expiresIn, java.lang.String refresh_token, java.lang.String openid,
			java.lang.String scope) {
		super();
		this.token = token;
		this.expiresIn = expiresIn;
		this.refresh_token = refresh_token;
		this.openid = openid;
		this.scope = scope;
	}

	@Override
	public String toString() {
		return "AccessToken [token=" + token + ", expiresIn=" + expiresIn + ", refresh_token=" + refresh_token
				+ ", openid=" + openid + ", scope=" + scope + "]";
	}
	
}